08. Frenet Coordinates
Frenet Coordinates
Before we discuss process models, we should mention "Frenet Coordinates", which are a way of representing position on a road in a more intuitive way than traditional Cartesian Coordinates.
With Frenet coordinates, we use the variables and to describe a vehicle's position on the road. The coordinate represents distance along the road (also known as longitudinal displacement ) and the coordinate represents side-to-side position on the road (also known as lateral displacement ).
Why do we use Frenet coordinates? Imagine a curvy road like the one below with a Cartesian coordinate system laid on top of it…

Using these Cartesian coordinates, we can try to describe the path a vehicle would normally follow on the road…


And notice how curvy that path is! If we wanted equations to describe this motion it wouldn't be easy!
Ideally, it should be mathematically easy to describe such common driving behavior. But how do we do that? One way is to use a new coordinate system. Now instead of laying down a normal Cartesian grid, we do something like you see below…

Here, we've defined a new system of coordinates. At the bottom we have to represent the beginning of the segment of road we are thinking about and to represent the center line of that road. To the left of the center line we have negative and to the right is positive.
So what does a typical trajectory look like when presented in Frenet coordinates?


It looks straight!
In fact, if this vehicle were moving at a constant speed of we could write a mathematical description of the vehicle's position as:
We'll be working with Frenet coordinates a good deal in the rest of the course, because…

…straight lines are so much easier than curved ones.